home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / knowhow4 / context.h < prev    next >
C/C++ Source or Header  |  1994-10-10  |  744b  |  27 lines

  1. //   Class to show context help in menus and so on
  2.  
  3. #ifndef __CONTEXT_H_
  4. #define __CONTEXT_H_
  5.  
  6. #include "icon.h"
  7. #include "pcx.h"
  8.  
  9. enum { NO_STATUS, MEDIUM_ICON_STATUS, SMALL_ICON_STATUS, LARGE_ICON_STATUS,
  10.        STRING_STATUS, PCX_STATUS };
  11.  
  12. class Context
  13.     {
  14.     protected:
  15.     rect statusPos;       // where to show status
  16.     int statusType;       // help list, icons, PCX, or something else
  17.     char** statusStrings; // status line help strings
  18.     int* statusList;      // we can use one or both
  19.     public:
  20.     Context(rect STATUSPOS = rect(0, 24, 79, 25),
  21.            int STATUSTYPE = 0, char** STATUSSTRINGS = NULL,
  22.            int* STATUSLIST = NULL);
  23.  
  24.     virtual void showStatus(int pos, int pat = 0);
  25.     };
  26.  
  27. #endif __CONTEXT_H_